import time

t1 = time.time()
print(t1)

# 结构化时间
t2 = time.localtime()
print(t2)

print(t2.tm_year, type(t2.tm_year))

strTime = time.strftime('%Y-%m-%d %H:%M:%S', t2)
print(strTime)
